<!--探测请求发送页面-->
<template>
  <div class="container-div">
    <div style="text-align: center">
      <el-button type="primary" @click="sendFn" v-loading="loading">发送</el-button>
    </div>
  </div>
</template>
<script>
import { send } from "@/api/cnaps/ccms/991/probe_request_send_entry.js";
export default {
  data() {
    return {
      loading: false,
    };
  },
  methods: {
    sendFn() {
      this.loading = true;
      send()
        .then(() => {
          this.msgSuccess("成功");
          this.loading = false;
        })
        .catch((err) => {
          this.loading = false;
        });
    },
  },
};
</script>
<style>
.container-div {
  position: relative;
  width: 100%;
  height: 100px;
  background: #fff;
  border-radius: 6px;
  margin-top: 20px;
  padding-top: 5px;
  padding-bottom: 13px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.btn {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  height: 28px;
  cursor: pointer;
  outline: none;
  border: 1px solid transparent;
  color: #ffffff;
}
</style>
